﻿@using INNOVACALL.Framework.Common
@using Innovacall.MyPrettyCMS.PlugIns.PI_ContactManager_ResourcesLayer;
@using INNOVACALL.Framework.Common.Models.ViewModels.LayoutViewModels;
@using Innovacall.MyPrettyCMS.PlugIns.PI_ContactManager_ResourcesLayer;
@{
    Innovacall.MyPrettyCMS.PlugIns.PI_ContactManager_CommonLayer.Models.ViewModels.LayoutViewModels._LayoutViewModels_Base layoutModel = (Innovacall.MyPrettyCMS.PlugIns.PI_ContactManager_CommonLayer.Models.ViewModels.LayoutViewModels._LayoutViewModels_Base)Model;
    string StyleBundleBase = string.Empty;
    string JQueryUITheme = System.Configuration.ConfigurationManager.AppSettings["JQueryUITheme"];
    bool CustomTheme = JQueryUITheme.ToLower() != "base";
    if (CustomTheme)
    {
        StyleBundleBase = string.Format(@"~/Content/themes/{0}", layoutModel._JQueryUITheme);
    }
    string KendoStyleBundleBase = string.Empty;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@layoutModel._PageTitle</title>
    @Styles.Render("~/Content/css")
    @if (CustomTheme)
    { 
        @Styles.Render(string.Format(@"{0}/css", StyleBundleBase))
    }
    @if (layoutModel._UsesKendoUI) 
    {
        @Styles.Render("~/Content/clientComponents/KendoUI/css")
    }

    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    @RenderBody()

    @Scripts.Render("~/bundles/jquery")
    @if(layoutModel._UsesKendoUI){
        @Scripts.Render("~/bundles/kendoui")
    }
    @RenderSection("scripts", required: false)
    <script type="text/javascript">
    @{
        foreach (string variable in layoutModel._JSVariables)
        {
	    @Html.Raw(variable);
        }
    }
		    $(document).ready(function () {
		    $.fn.DocReady();
	    });
    </script>
</body>
</html>
